package com.pz.cloud.framework.business.workflow.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "TaskNodeModel", description = "任务节点")
public class TaskNodeModel {
    @ApiModelProperty(value = "任务key")
    private String taskKey;

    @ApiModelProperty(value = "任务名称")
    private String taskName;//任务名称

    @ApiModelProperty(value = "办理人表达式")
    private String handlerUsersExpression;

    @ApiModelProperty(value = "是否会签任务 1是 0否")
    private Integer isMultiInstance;//是否会签任务

    @ApiModelProperty(value = "是否能够修改默认执行人 0否 1能")
    private Integer canChooseHandler = 1;

    @ApiModelProperty(value = "默认处理人名称")
    private String defaultHandlerName;//默认处理人名称

    @ApiModelProperty(value = "默认处理人id")
    private String defaultHandlerId;//默认处理人id

    @ApiModelProperty(value = "是否结束 0否 1是")
    private Integer isEndEvent;//是否结束

    public TaskNodeModel() {
    }

    public TaskNodeModel(String taskKey, String taskName) {
        this.taskKey = taskKey;
        this.taskName = taskName;
    }
}
